//
//  UserCollectionViewCell.m
//  SugarPile
//
//  Created by LC on 16/2/26.
//  Copyright © 2016年 www.lanou39.蓝鸥科技. All rights reserved.
//

#import "UserCollectionViewCell.h"

@implementation UserCollectionViewCell

- (void)dealloc
{
    [_image release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // 创建图片
        self.image = [[UIImageView alloc] init];
        _image.backgroundColor = [UIColor floralWhite];
        [self.contentView addSubview:_image];
        
    }
    return self;
}

// 布局方法
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _image.frame = CGRectMake(0, 0, layoutAttributes.size.width, layoutAttributes.size.height);
    
}

@end
